<ul id="private_messages_list_ul">
<?php foreach($messages as $msg){ ?>
<li class="<?php echo $msg['is_viewed'] == 1 ? '' : 'new'?>">
    <div class="sender_name"><?php echo $user_id == $msg['sender_id'] ? __('You') : sfGuardUserTable::getInstance()->find($msg['sender_id']) ?>
                            <span class="modification_time"><?php echo $msg['modification_time']?></span></div>
    <div class="message_body"><?php echo truncate_text($msg['body'],200,'...') ?>
        <div class="read_btn"><a href="<?php echo url_for('private_messages/showFullMessage') ?>?msg_id=<?php echo $msg['id']?>" onClick="return openMessages(this)"><?php echo __('Read Message') ?></a></div>    
    </div>
</li>
<?php } ?>
</ul>